<?php
// Variables (constants?) whose values are specific
// to the local installation of the DP code.

// During site configuration, identifiers delimited by double angle-brackets
// are replaced by the corresponding values in SETUP/configuration.sh.
// See that file for specific information on these and other settings.

define("APP_ROOT",          "/home/test/public_html/");
// define("DP_ROOT",           "{$_SERVER['DOCUMENT_ROOT']}");

// define("DP_URL",            "http://{$_SERVER['HTTP_HOST']}");
define("DP_URL",            "http://dp-test.dm.unipi.it");
define("DYN_ROOT",          "/var/transient");
define("TRANSIENT_ROOT",    "/var/transient");
define("TEMP_ROOT",         "/tmp");
// define("PROJECT_PHP",       DP_URL."/project.php");

$code_dir                   = APP_ROOT;
$projects_dir               = '/home/proj';
$uploads_dir                    = "/var/ftp-shared/uploads/dpftp";
$include                    = APP_ROOT . "pinc/";

$transient_path             = TRANSIENT_ROOT;
$phpbb_root_path	    = "/usr/share/phpbb3/www/";

// $pm_path                    = DP_ROOT."/tools/project_manager";






define("APP_URL",          "http://dp-test.dm.unipi.it/~test");
$code_url                   = APP_URL;
$ajax_url		            = APP_URL."/wc.php";
// $projects_url               = DP_URL.'/projects';
// $project_dir                = '/var/www/projects';
// $project_url                = DP_URL.'/projects';
$pm_url                     = APP_URL."/tools/project_manager";
$admin_url                  = APP_URL."/tools/admin";
$proof_url                  = APP_URL."/tools/proofers";
$tools_url                  = APP_URL."/tools";
$wc_url                     = APP_URL."/wc";
$js_url                     = APP_URL."/js";
$css_url                    = APP_URL."/css";

// $dyn_dir                    = DYN_ROOT;
// $download_temp_path         = TRANSIENT_ROOT."/download_tmp";
// $dynstats_dir               = DYN_ROOT."/stats";
// $xmlfeeds_dir               = DP_ROOT."/xmlfeeds";
// $jpgraph_dir                = DP_ROOT.'/jpgraph';

// $wiki_url                = '<<WIKI_URL>>';

define("BB_URL",            "http://dp-test.dm.unipi.it/phpbb3");
$inbox_url                  = BB_URL."/ucp.php?i=pm&amp;folder=inbox";
$forums_url                 = BB_URL;
$forum_url                  = $forums_url;
$reset_password_url         = "$forums_url/ucp.php?mode=sendpassword";
$forum_registration_url     = $forums_url."/ucp.php?mode=register";
$registration_url           = $forums_url."/ucp.php?mode=register";

// $general_forum_url                = "$forums_url/viewforum.php?f=$general_forum_idx";
// $faq_url                          = "$code_url/faq/ProoferFAQ.html";
// $waiting_projects_forum_url       = "$forums_url/viewforum.php?f=$waiting_projects_forum_idx";
// $projects_forum_url               = "$forums_url/viewforum.php?f=$projects_forum_idx";
// $pp_projects_forum_url            = "$forums_url/viewforum.php?f=$pp_projects_forum_idx";
// $posted_projects_forum_url        = "$forums_url/viewforum.php?f=$posted_projects_forum_idx";
// $post_processing_forum_url        = "$forums_url/viewforum.php?f=$post_processing_forum_idx";
// $content_providing_forum_url   	  = "$forums_url/viewforum.php?f=$content_providing_forum_idx";
// $beginners_site_forum_url 	      = "$forums_url/viewforum.php?f=$beginners_site_forum_idx";
// $beginners_proofing_forum_url     = "$forums_url/viewforum.php?f=$beginners_proofing_forum_idx";
// $teams_forum_url                  = "$forums_url/viewforum.php?f=$teams_forum_idx";

// 31-01-2011 - Jesus has updated the fora IDs to match the real ones
$general_forum_idx                = '18';
$beginners_site_forum_idx         = '8';
$beginners_proofing_forum_idx     = '6';
$waiting_projects_forum_idx       = '2';
$projects_forum_idx               = '23';
$pp_projects_forum_idx            = '22';
$posted_projects_forum_idx        = '25';
$content_providing_forum_idx      = '29';
$post_processing_forum_idx        = '32';
$teams_forum_idx                  = '27';

// ------------------------------------------------------------------

$site_name                      = 'DP-test Italia';
$site_abbreviation              = 'DPT-It';
$site_signoff                   = "ciao";
$site_url                       = APP_URL;

$preceding_proofer_restriction  = 'not_immediately_preceding';
$public_page_details            = false;
// ------------------------------------------------------------------

// $uploads_host = "sftp://dp-test.dm.unipi.it";
// $uploads_account = "dpftp";
// $uploads_password = "italia";

// ---------------------------------------------------------

$locale_dir                     = APP_ROOT."locale";
$system_locale_dir              = "/etc/default/locale";

$php_cli_executable             = "/usr/bin/php";

// ---------------------------------------------------------

$no_reply_email_addr            = "";
$general_help_email_addr        = "";
$site_manager_email_addr        = $general_help_email_addr;
$auto_email_addr                = $general_help_email_addr;
$db_requests_email_addr         = $general_help_email_addr;
$promotion_requests_email_addr  = $general_help_email_addr;
$ppv_reporting_email_addr       = $general_help_email_addr;
$image_sources_manager_addr     = $general_help_email_addr;

// -----------------------------------------------------------------

$is_utf8                    = true;
$is_wordcheck               = false;
$is_random_rule             = false;
$is_mentoring               = false;
$is_queues                  = false;
$is_pools                   = false;
$is_stages                  = false;
$testing                    = false;
$is_detail_levels           = false;
$is_gradual                 = false;
$is_special_days            = false;
$is_neighbors               = false;

$page_lease_seconds         = 4 * 60 * 60;
$use_php_sessions           = true;
$cookie_encryption_key 
    = "PupHewAWeSwEba9AkavABudRabruCraXuFepraphUprefRUCruprutrA";
$maintenance                = false;
$site_supports_metadata     = false;
$site_supports_corrections_after_posting = false;
$auto_post_to_project_topic = false;
$ordinary_users_can_see_queue_settings = true;
$external_catalog_locator   = ""; // 'z3950.loc.gov:7090/Voyager';
$charset                    = "utf-8";

$jpgraph_FF                 = "2";
$jpgraph_FS                 = "9002";

// ------------------------------------------------------------------

// Make sure magic_quotes_gpc is turned on, we rely heavily on it.
// No, make sure it's off. It is deprecated and Considered Harmful.

if (get_magic_quotes_gpc() != 0) 
{
    die("Error: magic_quotes_gpc turned on - must be off.");
}
?>
